/*
+--------------------------
| FreeloaderOS v0.0.1
|  - Microkernel
+--------------------------
| Written by Alec Hussey
| Copyright (c) 2007
|  - Deus X Foundation
+---------------------------
*/

/*
 * Memory Test
 */

#include <stdio.h>
#include "mem_functions.h"

void init_memtest()
{
	int i;
	
	printf("Memory Test\n\n");
	printf("Running data bus test... ");
	
	for (i = 0; i <= 5; i++)
		memtest_databus(0xF0000000);
	
	printf("Done\n");
	printf("Running address bus test... ");
	
	for (i = 0; i <= 5; i++)
		memtest_addrbus(0xC0000000, (256*1024*1024));
	
	printf("Done\n");
	printf("Running device test... ");
	
	for (i = 0; i <= 5; i++)
		memtest_device(0xC0000000, (256*1024*1024));
	
	printf("Done\n");
}
